package com.findFish.fish.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 鱼类健康监测对象 fish_health
 * 
 * @author admin
 * @date 2025-04-01
 */
public class FishHealth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 健康检测ID */
    private Long id;

    /** 鱼类种群ID */
    @Excel(name = "鱼类种群ID")
    private Long fishPopulationId;

    /** 检查日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检查日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkDate;

    /** 检测到的疾病 */
    @Excel(name = "检测到的疾病")
    private String diseaseDetected;

    /** 存活率（%） */
    @Excel(name = "存活率", readConverterExp = "%=")
    private BigDecimal survivalRate;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFishPopulationId(Long fishPopulationId) 
    {
        this.fishPopulationId = fishPopulationId;
    }

    public Long getFishPopulationId() 
    {
        return fishPopulationId;
    }

    public void setCheckDate(Date checkDate) 
    {
        this.checkDate = checkDate;
    }

    public Date getCheckDate() 
    {
        return checkDate;
    }

    public void setDiseaseDetected(String diseaseDetected) 
    {
        this.diseaseDetected = diseaseDetected;
    }

    public String getDiseaseDetected() 
    {
        return diseaseDetected;
    }

    public void setSurvivalRate(BigDecimal survivalRate) 
    {
        this.survivalRate = survivalRate;
    }

    public BigDecimal getSurvivalRate() 
    {
        return survivalRate;
    }

    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fishPopulationId", getFishPopulationId())
            .append("checkDate", getCheckDate())
            .append("diseaseDetected", getDiseaseDetected())
            .append("survivalRate", getSurvivalRate())
            .append("notes", getNotes())
            .toString();
    }
}
